home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jlilley@ix.netcom.com (John Lilley)
- Newsgroups: comp.lang.c++
- Subject: Re: Is there any limit to the overloading of names and templates. C++ overrated?
- Date: 18 Mar 1996 17:39:23 GMT
- Organization: Netcom
- Message-ID: <4ik74b$14k@reader2.ix.netcom.com>
- References: <4iiam6$h36@solaris.cc.vt.edu>
- NNTP-Posting-Host: den-co8-14.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Mon Mar 18 9:39:23 AM PST 1996
- X-Newsreader: WinVN 0.99.7
-
- In article <4iiam6$h36@solaris.cc.vt.edu>, ericpe@vt.edu says...
-
- >Is it possiple to go beyond the capability of the overload technique in
- >any compilier? That is, at some point does the C++ language start to
- >loose it's relibility if overload is used in too many layers of
- >repetetion.?
-
- At some point, the compiler could conceivable die of internal
- overload if your made zillions of the same function. However,
- it is much more likely that the following will happen first:
-
- 1) The overloading becaomes abiguous, which means that a given
- call to an overloaded function finds two or more to be equally
- suitable, in which case the compiler is obligated to flag
- the call as an error.
-
- 2) You won't be able to figure out function is to be called yourself.
-
- Check out any good C++ book for a discussion of overloading resolution.
-
- > What does the assembly "governing code" look like to this
- >conveinient attribute, "overload" ?
-
- The overloaded function is chosen at compile-time. The produced
- code is exactly as if there were only one function to be called.
-
- > Is C++ over-rated? Is there a suitable equilvalent that will get
- >programs done with just a little bit more structure than the anarchist
- >nature of C++?
-
- Depends on your needs. C++ is compatible with "C" and a huge body
- of tools and libraries. The anarchy is largely of your own choosing;
- you don't need to tie your brain in knots about overloading if you
- don't use it (of course, you'll be exposed to libraries that do use it).
- That being said, C++ is harder than, say, Pascal/Delphi, which is still
- a practical tool. Visual Basic is a lot easier, but IMHO makes it
- very difficult to write and maintain robust programs (to wit, I have
- yet to encounter a VB program that does not crash regularly).
-
- john lilley
-
-